Skip to content

Avoid some promise object allocations when writing on channel - #16113

Merged
merlimat merged 1 commit into
apache:masterfrom
merlimat:avoid-promise-allocation
Jun 20, 2022
Merged

Avoid some promise object allocations when writing on channel#16113
merlimat merged 1 commit into
apache:masterfrom
merlimat:avoid-promise-allocation

Conversation

@merlimat

@merlimat merlimat commented Jun 17, 2022

Copy link
Copy Markdown
Contributor

Motivation

If we're not using the future returned by writeAndFlush(), we can use a voidFuture to prevent any allocations.

  • doc-not-needed

@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Jun 17, 2022
@merlimat merlimat added this to the 2.11.0 milestone Jun 17, 2022
@merlimat merlimat self-assigned this Jun 17, 2022
@github-actions

Copy link
Copy Markdown

@merlimat Please provide a correct documentation label for your PR.
Instructions see Pulsar Documentation Label Guide.

@merlimat merlimat added doc-not-needed Your PR changes do not impact docs and removed doc-label-missing labels Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants